<include file="Public::header" />
    <div class="main">
        <a href="{:U('memcp/sitecms',array('curr'=>all))}">全部</a>
        <a href="{:U('memcp/sitecms',array('curr'=>received))}">收件的</a>
        <a href="{:U('memcp/sitecms',array('curr'=>send))}">发出的</a>        
        <php>if ($top_data){</php>
        <table>
            <tr><th>我和{$top_data['re_nickname']}的站内聊天</th></tr>
            <tr>
                <td>
                    <p>
                        <php>
                            if ($top_data['se_mid'] == $user['mid']){
                                echo '我说: ';
                            }else{
                                echo '<a href="'.U('people/'.$top_data['re_mid']).'"  title="'.$top_data['re_nickname'].'">'.$top_data['re_nickname'].'</a>说: ';               
                            }
                        </php>                    
                        <span  class="gray">{:date('Y-m-d h:i',$top_data['add_time'])}</span></p>
                    <p>{$top_data['content']}</p>
                </td>
            </tr>
            <php> if ($sub_data) {</php>
                <volist name="sub_data" id="vo">
                    <tr>
                        <td>
                            <p>
                                <php>
                                    echo ($vo['sse_mid'] == $user['mid']) ? '我说: ' : '<a href="'.U('people/'.$vo['sse_mid']).'"  title="'.$vo['sse_nickname'].'">'.$vo['sse_nickname'].'</a>说: ';</php>
                                <span class="gray">{:date('Y-m-d h:i',$vo.add_time)}</span>
                            </p>
                            <p>{$vo.content}</p>
                        </td>
                    </tr>
                </volist>
            <php>}</php>
            <tr>
                <td>
                    <form action="{:U('memcp/replysms')}" method="post">
                        <p><textarea name="content"></textarea></p>
                        </p><input type="submit" name="submit" value="回复" /></p>
                        <input type="hidden" name="tsid" value="{$top_data.tsid}" />
                    </form>
                </td>
            </tr>
        </table>
        <php>}else{</php>
            <p>暂时没有您的站内信...</p>
        <php>}</php>

    </div>
<include file="Public::footer" />